package com.example.webserviceserver.service;

import org.springframework.stereotype.Service;

import javax.jws.WebService;
import java.util.Date;

@Service
@WebService(serviceName = "WebServiceDemoService",//与接口中指定的name一致
        targetNamespace = "http://service.webserviceserver.example.com",//与接口中的命名空间一致，一般是接口的包名倒叙
        endpointInterface = "com.example.webserviceserver.service.WebServiceDemoService"//接口地址
)
public class WebServiceDemoServiceImpl implements WebServiceDemoService {

    @Override
    public String hello(String name) {
        return "hello" + name;
    }
}
